//
//  HXHotWaresCCell.m
//  ZCooking
//
//  Created by 韩旭 on 16/9/3.
//  Copyright © 2016年 HX_. All rights reserved.
//

#import "HXHotWaresCCell.h"
#import "HXHotShopingModel.h"
#import "HX_Macro.h"
@implementation HXHotWaresCCell

- (void)setHotModel:(HXHotShopingModel *)hotModel {
    _hotModel = hotModel;
    self.price.text = [NSString stringWithFormat:@"%.1f", hotModel.price];
    [self.shopImage sd_setImageWithURL:[NSURL URLWithString:hotModel.backgroundImage]];
    self.detailLabel.text = hotModel.name;
    self.saleCount.text = [NSString stringWithFormat:@"已售：%ld", hotModel.sales];
    self.priceLabel.text = [NSString stringWithFormat:@"原价：%ld", hotModel.streetPrice];
}

- (void)awakeFromNib {
   self.priceLabel.text = [NSString stringWithFormat:@"原价:%@", @"1232"];
}

@end
